package com.tlgen.modules.dept.repository;

import com.tlgen.modules.dept.domain.Doctors;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author: tlgen
 * @Discription: 医生持久层
 */
public interface DoctorsRepository extends JpaRepository<Doctors, Long>, JpaSpecificationExecutor<Doctors> {

    /**
     * 根据名称查询
     * @param name
     * @return
     */
    Doctors findByName(String name);

}
